import Vue from 'vue';

var commonDialog;

// 创建普通提示框
function createCommonDialog(commonData) {
    
    commonDialog = new Vue({
        el: "#commonDialog",
        data: {
            commonData: commonData,
            prompt: ""
        },
        methods: {
            "hide": function() {
                this.commonData.showDialog = 0;
            }
        }
    });

    return commonDialog;
}


module.exports = {
    createCommonDialog: createCommonDialog
}